package com.ruoyi.chargepile.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.chargepile.domain.RepairRecord;
import com.ruoyi.chargepile.domain.dto.RepairRecordDto;
import com.ruoyi.chargepile.domain.vo.RepairRecordVo;
import com.ruoyi.chargepile.mapper.RepairRecordMapper;
import com.ruoyi.chargepile.service.RepairRecordService;
import com.ruoyi.util.DateRange;
import com.ruoyi.util.Pages;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 报修记录表 服务实现类
 * </p>
 *
 * @author zxc
 * @since 2024-07-03
 */
@Service
public class RepairRecordServiceImpl extends ServiceImpl<RepairRecordMapper, RepairRecord> implements RepairRecordService {

    @Resource
    private RepairRecordMapper repairRecordMapper;

    @Override
    public List<RepairRecordVo> listRepairRecord(Pages pages, DateRange dateRange, DateRange dateRangeCompleted, RepairRecordDto repairRecordDto) {
        return repairRecordMapper.listRepairRecord(pages, dateRange, dateRangeCompleted, repairRecordDto);
    }
}
